/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.common.log.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 系统日志表 sys_log 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2023年05月09日
 */
@Data
@Table(name = "upcase.sys_log")
public class SysLog implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 操作类型：1-系统登录
     */
    @Column(name = "operate_type")
    private String operateType;

    /**
     * 操作人员名称
     */
    @Column(name = "operator_name")
    private String operatorName;

    /**
     * 操作人员所属单位编码
     */
    @Column(name = "operator_org_code")
    private String operatorOrgCode;

    /**
     * 操作人员所属单位名称
     */
    @Column(name = "operator_org_name")
    private String operatorOrgName;

    /**
     * 操作人IP
     */
    @Column(name = "operator_ip")
    private String operatorIp;

    /**
     * 操作详情
     */
    @Column(name = "operate_detail")
    private String operateDetail;

    /**
     * 操作时间
     */
    @Column(name = "operate_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime operateTime;


}
